package edu.wong.pro.dao;

/**
 * AbstractAttenderId entity provides the base persistence definition of the
 * AttenderId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractAttenderId implements java.io.Serializable {

	// Fields

	private Integer activityId;
	private Integer memId;

	// Constructors

	/** default constructor */
	public AbstractAttenderId() {
	}

	/** full constructor */
	public AbstractAttenderId(Integer activityId, Integer memId) {
		this.activityId = activityId;
		this.memId = memId;
	}

	// Property accessors

	public Integer getActivityId() {
		return this.activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public Integer getMemId() {
		return this.memId;
	}

	public void setMemId(Integer memId) {
		this.memId = memId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractAttenderId))
			return false;
		AbstractAttenderId castOther = (AbstractAttenderId) other;

		return ((this.getActivityId() == castOther.getActivityId()) || (this
				.getActivityId() != null && castOther.getActivityId() != null && this
				.getActivityId().equals(castOther.getActivityId())))
				&& ((this.getMemId() == castOther.getMemId()) || (this
						.getMemId() != null && castOther.getMemId() != null && this
						.getMemId().equals(castOther.getMemId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getActivityId() == null ? 0 : this.getActivityId()
						.hashCode());
		result = 37 * result
				+ (getMemId() == null ? 0 : this.getMemId().hashCode());
		return result;
	}

}